package com.shuqi.model.parse;

import org.xml.sax.Attributes;
import org.xml.sax.helpers.DefaultHandler;

/**
 * 解析handler的父类
 * 
 * @author jinliang
 */
public abstract class HandlerBase extends DefaultHandler {
    /**一般情况下服务器返回的：正常的成功值：200*/
    public final int RESPONSE_CODE_200 = 200;
    public abstract Object getParsedData();

    /**
     * 解析空判断
     */
    public String isNull(Attributes attrs, String key) {
        String value = attrs.getValue(key);
        return value == null ? null : value;
    }
}
